package com.furns.service.impl;

import com.furns.dao.ManagerDAO;
import com.furns.dao.impl.ManagerDAOImpl;
import com.furns.entity.Manager;
import com.furns.entity.Member;
import com.furns.service.ManagerService;

/**
 * @Author LuoJiaCheng
 * @ID 2240129126
 * @Version 1.0
 */
public class ManagerServiceImpl implements ManagerService {

    private ManagerDAO managerDAO = new ManagerDAOImpl();
    @Override
    public Manager login(Manager manager) {
        return managerDAO.queryMangerByNameAndPassword(manager.getName(),manager.getPassword());
    }
}
